package com.shababeach.travel.repository;

import com.shababeach.travel.entity.LocationType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 位置类型Mapper接口
 */
@Repository
public interface LocationTypeRepository extends JpaRepository<LocationType, Integer> {

    List<LocationType> findByStatus(Integer status);

    Page<LocationType> findByName(String name, Pageable pageable);
}